package com.ruicar.afs.cloud.manage.common.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruicar.afs.cloud.common.core.util.IResponse;
import com.ruicar.afs.cloud.manage.common.entity.ManageOverpaymentDifference;
import com.ruicar.afs.cloud.manage.common.vo.ContractCloseManageVO;

/**
 * @author: Lee
 * @date 2020-05-30 04:44:59
 * @description
 */
public interface ManageOverpaymentDifferenceService extends IService<ManageOverpaymentDifference> {

    /**
     * 提交合同关闭信息
     *
     * @param difference
     * @author: xudongdong
     */
    void submitOverpayment(ContractCloseManageVO difference);

    /**
     * 审批流程
     *
     * @param difference
     * @author: xudongdong
     */
    String approveOverpayment(ContractCloseManageVO difference);

    /**
     * 合同关闭列表查询
     *
     * @param vo
     * @author: xudongdong
     */
    IPage getContractCloseList(Page page, ContractCloseManageVO vo);


    void closeContract(ManageOverpaymentDifference difference);

    /**
     * 删除合同关闭表的数据
     *
     * @param contractNo
     * @return
     */
    IResponse delete(String contractNo);
}
